.back-btn{
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 24px;
    color: #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease; 
}
.back-btn:hover{
    transform: scale(1.2);
    color: #ffffff;
}
h2{
    font-size: 32px;
    margin: 30px 0;
    text-align: center;
}
.input-group{
    position: relative;
    margin: 30px 0;
    border-bottom: 2px solid #fff;
}
.input-group label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    transition: 0.5s; 
}
/* 密码显示按钮的样式 */
.toggle-password{
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-45%);
    width: 20px;
    height: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}
.input-group input{
    width: 320px;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #fff;
    padding: 0 5px;
    /*强制设置光标的颜色为白色*/
    caret-color: #fff;
}
.input-group input:disabled{
    cursor: not-allowed;
}
/* 隐藏所有浏览器自带的密码显示按钮，使用!important确保样式优先级最高 */
input[type="password"]::-ms-reveal,
input[type="password"]::-webkit-reveal,
input[type="password"]::-webkit-caps-lock-indicator,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/*强制修改浏览器填入元素的背景颜色*/
.input-group input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
/*使用 :-webkit-autofill 伪类来针对浏览器自动填充的输入框*/
.input-group input:-webkit-autofill {
/*通过 -webkit-text-fill-color 属性强制设置字体颜色为白色, !important 确保覆盖浏览器的默认样式*/
    -webkit-text-fill-color: #fff !important;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label{
    top: -5px;
}
.error-msg {
    color: #ff4444;
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    bottom: -20px;
    left: 0;
    text-wrap: nowrap;
    animation: shake 0.5s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.get-code-btn{
    position: absolute;
    width: 40%;
    height: 90%;
    top: 55%;
    right: 0;
    transform: translateY(-50%);
    background: #409eff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.get-code-btn:disabled{
    background: #ccc;
    cursor: not-allowed;
}
.terms-link{
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}
.terms-link:hover {
    text-decoration: underline;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(64, 158, 255, 0.1);
}
.remember{
    position: relative;
    margin: 30px 0 30px 5px;
}
.remember label{
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}
.remember label input{
    accent-color: #f4157e;
    cursor: pointer;
}
button{
    position: relative;
    width: 100%;
    height: 40px;
    background: #f4157e;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    border-radius: 30px;
    border: none;
    outline: none;
}
button:disabled{
    background: #ccc;
    cursor: not-allowed;
}
/* 添加加载动画样式 */
.loader {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.signup-link,
.signin-link{
    font-size: 16px;
    text-align: center;
    margin: 15px 0;
}
.signup-link p,
.signin-link p{
    color: #fff;
}
.signup-link p a,
.signin-link p a{
    color: #f4157e;
    text-decoration: none;
    font-weight: 500;
}
.signup-link p a:hover,
.signin-link p a:hover{
    text-decoration: underline;
}
.social-platform{
    font-size: 16px;
    color: #fff;
    text-align: center;
}
.social-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 16px;
    margin-top: 16px;
}
.social-icons a{
    display: inline-block;
    width: 36px;
    aspect-ratio: 1/1;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;      
}
.social-icons a:hover{
    background: #fff; 
}
.social-icons a i{
    font-size: 16px;
    color: #fff;
}
.social-icons a:hover i{
    color: rgba(0, 0, 0, 0.3); 
}